<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="./Public/Home/css/index.css"/>
	<link rel="stylesheet" type="text/css" href="./Public/Home/css/Carousel figure.css"/>
    <script type="text/javascript" src="Public/uploadify/jquery-1.8.2.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="./Public/Home/js/style.js"></script>
</head>
<body>	
<!--header-->
<header>
	<!--顶层-->
	<div class="header_top">
		<div class="header_c">
			<ul class="h_menu">
				<li class="li_left">
					<?php if(!isset($_SESSION['user'])) :?>
					<a href="{{U('Member/index')}}">欢迎登录名鞋库</a>&nbsp;
					<a href="{{U('Member/register')}}">免费注册</a>	
					<?php else :?>
						欢迎您，<a href="{{U('Individual/index',['cid'=>$topCate[0]['cid']])}}"><span class="account">{{$user['account']}}</span></a> ！
						<a href="{{U('Member/out')}}"><span class="out">[退出]</span></a>
					<?php endif ?>	
				</li>
				<li class="li_left_w">
					<?php if(isset($_SESSION['user'])) :?>
					<p><a href="{{U('Individual/index',['cid'=>$topCate[0]['cid']])}}">我的名鞋库</a></p>
					<?php else :?>
					<p><a href="{{U('Member/index')}}">我的名鞋库</a></p>					
					<!--<div class="show_hide">
						<a href="">我的订单</a>
						<a href="">密码管理</a>
					</div>-->
					<?php endif ?>
				</li>
				<!--<li>
					<p><a href="">手机名鞋库</a></p>
				</li>-->
				<!--<li>
					<span><a href="">收藏名鞋库</a></span>
				</li>-->
				<!--<li>
					<p><a href="">名鞋店客服</a></p>
				</li>-->
				<li>
					<p><a href="" style="color: #A21F25;font-size: 16px;font-weight: 700;">18303099587</a></p>
				</li>
				<input type="hidden" name="cid" value="{{$topCate[0]['cid']}}"/>
			</ul>
		</div>
	</div>
	<!--搜索区-->
	<div class="header_center">
		<div class="logo"></div>
		<div class="sub_help">
			<div class="shop">
				<?php if(isset($_SESSION['user'])) :?>
				<a href="{{U('ShopCar/index',['cid'=>$topCate[0]['cid']])}}">
					<div class="shop_picture">
						购物车 
						<span id="a">{{$goodsNum}}</span>						
						件
					</div>
				</a>
				<?php else :?>
				<a href="{{U('Member/index')}}">
					<div class="shop_picture">
						购物车 
						<span id="a">{{$goodsNum}}</span>						
						件
					</div>
				</a>
				<?php endif ?>
			</div>
			<div class="search">
				<form class="search_top" action="" method="post">

					<input class="search_content" type="text" value="记得要填！！" />
					<input class="searchbtn" type="button" value="搜索" />
					
				</form>
				<!--<span>热搜：</span>
				<ul class="keyword">

					<li><a href="">后台数据遍历</a></li>
					<li><a href="">后台数据遍历</a></li>
					<li><a href="">后台数据遍历</a></li>
					
				</ul>-->
			</div>
		</div>
		
	</div>
</header>
<!--endheader-->

<!--banner-->
<nav id="nav_head">
	<div class="nav_body">
		<div class="nav_left">所有商品分类</div>
				
		<ul class="nav_center">
			<div class="home">首页</div>
			<!--顶级分类-->
			{{foreach from="$topCate" value="$v"}}
			<li>
				<a href="{{U('List/index',array('cid'=>$v['cid']))}}">{{$v['cname']}}</a>
			</li>	
			{{endforeach}}						
		</ul>
	</div>
</nav>
<!--endbanner-->

<!--container-->
<nav id="nav_container">
	<ul class="nav_menu">
		{{foreach from="$topCate" key="$k" value="$v"}}
		<li> 	
			<!--顶级分类	背景logo-->		
			<div class="menu_name name_logo_{{$k}}">
				<a href="{{U('List/index',array('cid'=>$v['cid']))}}">{{$v['cname']}}</a>				
			</div>		
			<div class="menu_hide">
				{{foreach from="$v['son']" key="$kk" value="$vv"}}
				<div class="menu_hide_logo">
					<!--一级分类	背景logo-->
					<!--<div class="menu_hide_go hide_pic_{{$kk}}">-->
						<h4>{{$vv['cname']}}</h4>
					<!--</div>-->					
				</div>
				<!--二级分类-->
				<ul class="menu_hide_content">
					{{foreach from="$vv['grandson']" value="$vvv"}}
					<li><a href="{{U('List/index',['cid'=>$k])}}">{{$vvv['cname']}}</a></li>
					{{endforeach}}			
				</ul>
				{{endforeach}}			
			</div>
		</li>
		{{endforeach}}
		<li>
			<div class="menu_name name_logo_7">
				<a href="{{U('List/index',array('cid'=>$v['cid']))}}">男鞋</a>				
			</div>
		</li>
		<li>
			<div class="menu_name name_logo_8">
				<a href="{{U('List/index',array('cid'=>$v['cid']))}}">童鞋</a>				
			</div>
		</li>
	</ul>
	<!--轮播图-->
	<div class="cf">
		<div id="box">
			<img src="./Public/Home/images/01.jpg" alt="" />
			<img src="./Public/Home/images/02.jpg" alt="" />
			<ul class="ul">
				<li></li>
				<li></li>
			</ul>
			<div id="btn_L"></div>
			<div id="btn_R"></div>		
		</div>
	</div>

</nav>
<!--endcontainer-->

<!--brandwall-->
<div class="brandwall_top">
	<span class="brandtitle">品牌推荐</span>
</div>
<nav id="brandwall">
	<!--所有品牌-->
	<ul>
		{{foreach from="$brandDataBig" value="$v"}}
		<li><a class="brand_img" href="{{U('List/index',['cid'=>14])}}"><img src="{{$v['logo']}}" alt="" /></a></li>
		{{endforeach}}			
	</ul>
	<div class="brandwall_new">
		<div class="new_picture"></div>
		<!--放最新东动态图片-->
		{{foreach from="$brandDataBig" value="$v"}}
			{{if value="$v['ishot'] == 1"}}
			<div class="new_img">
				<a class="brand_img" href="{{U('List/index',['cid'=>14])}}"><img src="{{$v['logo']}}" alt="" /></a>
			</div>
			{{endif}}
		{{endforeach}}		
	</div>	
</nav>
<!--endbrandwall-->

<!--onefloor-->
<nav id="floor">
	<div class="It">
		<div class="hd_f">
			<img src="./Public/Home/images/floor_one.png" alt="" />
		</div>
		<div class="brand">
			<!--图片logo-->
			{{foreach from="$brandData" value="$v"}}
			<a class="nike" href="{{U('List/index',['cid'=>14])}}">
				<img src="{{$v['logo']}}" alt="" />
				<div class="nike_hide">{{$v['bname']}}</div>
			</a>
			{{endforeach}}						
		</div>
		
		<ul class="leftcat">
			<!--最多放6个，否则超出隐藏-->
			{{foreach from="$topCate" value="$v"}}
			{{if value="$v['cname'] == '运动休闲鞋'"}}
				{{foreach from="$v['son']" key="$kk" value="$vv"}}
					{{foreach from="$vv['grandson']" value="$vvv"}}
					<li><a href="{{U('List/index',['cid'=>14])}}">{{$vvv['cname']}}</a></li>
					{{endforeach}}
				{{endforeach}}
			{{endif}}
			{{endforeach}}
	
		</ul>
	</div>
	<div class="rt">
		<!--商品图-->
		<div class="rc">
			<!--一楼大图-->
			<a class="rc_move" href="{{U('List/index',['cid'=>14])}}"><img src="./Public/Home/images/1-1.jpg" alt="" /></a>
		</div>
		<div class="rl">									
			<!--商品图	中图3张-->
			<div class="rl_top">
				<a class="rl_move" href="{{U('List/index',['cid'=>14,'param'=>'0_0_350_0_355_0_0_0'])}}"><img src="./Public/Home/images/l1-1.jpg" alt="" /></a>
			</div>			
			<div class="rl_top">			
				<a class="rl_move" href="{{U('List/index',['cid'=>14,'param'=>'0_0_392_0_355_0_0_0'])}}"><img src="./Public/Home/images/l1-2.jpg" alt="" /></a>
			</div>
			<div class="rl_top">			
				<a class="rl_move" href="{{U('List/index',['cid'=>14,'param'=>'0_0_406_0_355_0_0_0'])}}"><img src="./Public/Home/images/l1-3.jpg" alt="" /></a>
			</div>

			<!--商品图	小图3张-->
			<div class="rl_top">			
				<a class="rl_move" href="{{U('List/index',['cid'=>14,'param'=>'0_0_350_0_417_0_0_0'])}}"><img src="./Public/Home/images/l1-4.jpg" alt="" /></a>
			</div>
			<div class="rl_top">		
				<a class="rl_move" href="{{U('List/index',['cid'=>14,'param'=>'0_0_406_0_417_0_0_0'])}}"><img src="./Public/Home/images/l1-5.jpg" alt="" /></a>
			</div>
			<div class="rl_top">		
				<a class="rl_move" href="{{U('List/index',['cid'=>14,'param'=>'0_0_446_0_417_0_0_0'])}}"><img src="./Public/Home/images/l1-6.jpg" alt="" /></a>
			</div>
								
		</div>	
	</div>
</nav>

<!--载入公共模板-->
{{include file="../Common/footer"}}




	
	
	
	
	
	
	
	
	
	
	
</body>
</html>

